package imserver.service;

import java.util.List;

import imserver.beans.FriendInfo;
import imserver.beans.MemberInfo;
import imserver.common.util.DaoException;
import imserver.dao.BaseDao;

public interface FriendService extends BaseDao<FriendInfo>{
	
	/**
	 * 加一个好友
	 * @param ownerId
	 * @param memberInfo
	 * @throws DaoException
	 */
	public void add(int ownerId, String memberNum) throws DaoException;
	
	/**
	 * 删除一个好友
	 * @param ownerId
	 * @param memberId
	 * @throws DaoException
	 */
	public void del(int ownerId, int memberId) throws DaoException;
	
	/**
	 * 我的好友
	 * @return
	 * @throws DaoException 
	 */
	public List<MemberInfo> list(int id) throws DaoException;
	
}
